package com.sdy.healthcode.biz.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
@ApiModel(value = "社区出入情况")
public class ReportPeoplePassDTO {

    /**
     * 序号ID
     */
    @TableId
    @ApiModelProperty(value = "序号ID")
    @ExcelIgnore
    private Integer id;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @ExcelIgnore
    private Integer userId;

    /**
     * 日期
     */
    @ApiModelProperty(value = "日期")
    @ExcelProperty(value = "日期" ,index = 1)
    private String recordDate;

    /**
     * 进/出
     */
    @ApiModelProperty(value = "进/出")
    @ExcelProperty(value = "进/出" ,index = 0)
    private String actionType;

    /**
     * 登记时间
     */
    @ApiModelProperty(value = "登记时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    @ExcelProperty(value = "登记时间" ,index = 2)
    private Date recordTime;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @ExcelProperty(value = "姓名" ,index = 3)
    private String name;

    /**
     * 科室
     */
    @ApiModelProperty(value = "科室")
    @ExcelProperty(value = "科室" ,index = 4)
    private String department;

    /**
     * 体温状况(正常/发热)
     */
    @ApiModelProperty(value = "体温状况(正常/发热)")
    @ExcelProperty(value = "体温状况" ,index = 5)
    private String healthType;

    /**
     * 体温
     */
    @ApiModelProperty(value = "体温")
    @ExcelIgnore
    private String remark;

    /**
     * 联系方式
     */
    @ApiModelProperty(value = "联系方式")
    @ExcelProperty(value = "联系方式" ,index = 6)
    private String phone;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    @ExcelIgnore
    private Date updateTime;

    /**
     * 记录时间
     */
    @ApiModelProperty(value = "记录时间")
    @ExcelIgnore
    private String timeRecord;

}
